'use strict';
module.exports = {
	/**
	 * XXXnameXXX
	 * @url client/user/kh/updateUsersIos 前端调用的url参数地址
	 * data 请求参数
	 * @param {String} params1  参数1
	 */
	main: async (event) => {
		let { data = {}, userInfo, util, filterResponse, originalParam } = event;
		let { customUtil, uniID, config, pubFun, vk, db, _ } = util;
		let { uid } = data;
		let res = { code: 0, msg: "" };
		// 业务逻辑开始-----------------------------------------------------------
		
        // res.userInfo=userInfo;
		let newInfo = await vk.baseDao.updateById({
		  dbName:"uni-id-users",
		  id:userInfo._id,
		  dataJson:{
		    userIosTime:true//用户看剧是否达到180秒，是为true，否则false
		  },
		});
		res.msg="已观看180秒剧集"



		// 业务逻辑结束-----------------------------------------------------------
		return res;
	}
}
